/**
 * 项目名：	Rumba Plan
 * 
 * 版权所有(C)，上海海鼎信息工程股份有限公司，2006，所有权利保留。
 * 
 * 文件名：	CDomain.java
 * 模块说明：	
 * 修改历史：
 * 2006-10-19 - lxm - 创建。
 */
package com.hd123.rumba.domain;

import com.hd123.rumba.cartridge.FVRumbaSystem;
import com.hd123.rumba.runtime.CVersionedPersistent;
import com.hd123.rumba.util.HashMap2;

/**
 * 域 | 常量类
 * 
 * @author lxm
 * @see IDomain
 * 
 */
public class CDomain extends CVersionedPersistent {

  public static final String CAPTION_CLASS = "域";

  /** 构件包前缀 */
  public static final String FUNCV_PREFIX = FVRumbaSystem.FUNCV_PREFIX;

  /** @see IDomain#getDomain() */
  public static final String CAPTION_DOMAIN = "域";

  /** @see IDomain#getLastModifier() */
  public static final String CAPTION_LASTMODIFIER = "最后修改人";
  public static final int LENGTH_LASTMODIFIER = 40;

  /** @see IDomain#getState() */
  public static final String CAPTION_STATE = "状态";
  public static final Integer VALUE_STATE_DELETED = new Integer(999);
  public static final Integer VALUE_STATE_NORMAL = new Integer(0);
  public static final Integer VALUE_STATE_ALL = new Integer(-999);
  public static final Integer VALUE_STATE_UNOPEN = new Integer(1);
  public static final Integer VALUE_STATE_PAUSED = new Integer(2);
  public static final Integer VALUE_STATE_CLOSED = new Integer(3);
  public static final String CAPTION_VALUE_STATE_DELETED = "已删除";
  public static final String CAPTION_VALUE_STATE_NORMAL = "正常";
  public static final String CAPTION_VALUE_STATE_ALL = "全部";
  public static final String CAPTION_VALUE_STATE_UNOPEN = "未开业";
  public static final String CAPTION_VALUE_STATE_PAUSED = "暂停营业";
  public static final String CAPTION_VALUE_STATE_CLOSED = "已关闭";
  public static final HashMap2 STATEMAP = new HashMap2(6).put2(VALUE_STATE_NORMAL,
      CAPTION_VALUE_STATE_NORMAL).put2(VALUE_STATE_DELETED, CAPTION_VALUE_STATE_DELETED).put2(
      VALUE_STATE_ALL, CAPTION_VALUE_STATE_ALL)
      .put2(VALUE_STATE_UNOPEN, CAPTION_VALUE_STATE_UNOPEN).put2(VALUE_STATE_PAUSED,
          CAPTION_VALUE_STATE_PAUSED).put2(VALUE_STATE_CLOSED, CAPTION_VALUE_STATE_CLOSED);

  /** @see IDomain#getCode() */
  public static final String CAPTION_CODE = "代码";
  public static String VALUE_ID_ROOT = "ROOT";
  public static final String PERMISSION_FA_CODE = "单位.字段.代码";
  public static final int LENGTH_CODE = 20;

  /** @see IDomain#getName() */
  public static final String CAPTION_NAME = "名称";
  public static final String PERMISSION_FA_NAME = "单位.字段.名称";
  public static final int LENGTH_NAME = 50;

  /** @see IDomain#getRemark() */
  public static final String CAPTION_REMARK = "备注";
  public static final String PERMISSION_FA_REMARK = "单位.字段.备注";
  public static final int LENGTH_REMARK = 200;

  /** @see IDomain#getProfile() */
  public static final String CAPTION_PROFILE = "档案";
  public static final String PERMISSION_FA_PROFILE = "单位.字段.联系方式";

  /** @see IDomain#getLevelId() */
  public static final String CAPTION_LEVELID = "层级码";
  public static final String VALUE_LEVELRULE = "4444";
  public static final String PERMISSION_FA_LEVELID = "单位.字段.层级码";
  public static final int LENGTH_LEVELID = 16;

  /** @see IDomain#getUpperDomain() */
  public static final String CAPTION_UPPERDOMAIN = "上级单位";
  public static final String PERMISSION_FA_UPPERDOMAIN = "单位.字段.上级单位";

  /** @see BDomain#getFuncViews() */
  public static String CAPTION_FUNCVIEWS = "已装载功能视图列表";
  
}

